package com.loan.monitor.admin;

import com.loan.log.logging.MonitorLogger;
import com.loan.log.logging.MonitorLoggerFactory;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Admin 监控启动程序
 *
 * @author lanling
 */
@EnableAdminServer
@SpringBootApplication
public class MonitorAdminApplication {

    private static final MonitorLogger MONITOR_LOGGER = MonitorLoggerFactory.getMonitorLogger(MonitorAdminApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(MonitorAdminApplication.class, args);
        MONITOR_LOGGER.info("200002","MonitorApplication启动成功");
        System.out.println("Admin 监控启动成功");
    }

}
